package com.ccrfid.rmc6.repository.business.patrol;

import com.ccrfid.rmc6.entity.business.patrol.PatrolLocationRecordEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PatrolLocationRecordRepository extends Repository<PatrolLocationRecordEntity, Long> {
    //
    List<PatrolLocationRecordEntity> getAllByScheduleIdAndLocationId(Long scheduleId, Long locationId);
    //
    void deleteAllByScheduleId(Long scheduleId);
    //
    PatrolLocationRecordEntity save(PatrolLocationRecordEntity entity);
}
